/*
 * @Description:
 * @Version: 1.0.0
 * @Author: gyh
 * @Date: 2021-08-17 22:33:44
 * @LastEditors: gyh
 * @LastEditTime: 2021-08-17 22:34:52
 */
import { createStore } from 'vuex'

const store = createStore({
  modules: {
    home: {
      namespaced: true,
      state: {
        count: 1,
      },
      mutations: {
        add(state) {
          state.count++
        },
      },
    },
  },
})

export default store
